package com.cetus.jengine.orm.ext.liferay.testportlet.model.impl;

import com.cetus.jengine.orm.ext.liferay.testportlet.model.SBook;
import com.cetus.jengine.orm.ext.liferay.testportlet.service.SBookLocalServiceUtil;

import com.liferay.portal.kernel.exception.SystemException;

/**
 * The extended model base implementation for the SBook service. Represents a row in the &quot;SB_SBook&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link SBookImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see SBookImpl
 * @see com.cetus.jengine.orm.ext.liferay.testportlet.model.SBook
 * @generated
 */
public abstract class SBookBaseImpl extends SBookModelImpl implements SBook {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a s book model instance should use the {@link SBook} interface instead.
     */
    public void persist() throws SystemException {
        if (this.isNew()) {
            SBookLocalServiceUtil.addSBook(this);
        } else {
            SBookLocalServiceUtil.updateSBook(this);
        }
    }
}
